<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ page import="com.fckbug.vos.ContentVO"%>
<%@ page import="java.util.List"%>
<%@ page import="com.fckbug.service.UserService"%>
<%@ page import="com.fckbug.util.SpringContextHolder"%>
<%@ page import="com.fckbug.vos.Acc"%>
<%
List<ContentVO> result = (List<ContentVO>)request.getAttribute("result");
UserService userService = (UserService)SpringContextHolder.getBean("userService");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>查看问题</title>
 <link rel="stylesheet" type="text/css" href="/css/all.css?v=1">
<script src="/js/jquery-1.6.1.min.js" type="text/javascript"></script>
</head>
<body>
<div id="custom-header"></div>
<div class="container">
<jsp:include page="/header.jsp"></jsp:include>
<div id="content">
	<%for(ContentVO vo:result){ 
		Acc acc = userService.getUserByUserId(vo.getCreateUserId());
	%>
<p><%=vo.getMarkTimes() %>、<%=vo.getViewTimes() %>、<%=vo.getAnswerCount() %>-<a href="/q/<%=vo.getId()%>"><%=vo.getTitle() %></a>:<img width="32" height="32" src="/head/<%=vo.getCreateUserId()%>"/><a href="/user/profile.do?id=<%=vo.getCreateUserId()%>"><%=acc.getNickName() %></a></p>
<%} %>
</div>
</div>
</body>
</html>